Skip to content

Conversation

@NeoIsRecursive
Copy link
Contributor

So we can do this:

$request->accepts(ContentType::JSON);

Should we handle wildcards? (Accepts: text/*)

Copy link
Member

@innocenzi innocenzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is still in draft, but quick review since I stumbled upon it and I'll be busy this week.

I love this new API, but:

  • Would definitely like support for wildcards
  • accepts should accept multiple types at once

@NeoIsRecursive NeoIsRecursive marked this pull request as ready for review October 12, 2025 17:52
@brendt brendt merged commit b61d352 into tempestphp:main Oct 13, 2025
90 of 91 checks passed
@brendt
Copy link
Member

brendt commented Oct 13, 2025

Awesome!

@NeoIsRecursive NeoIsRecursive deleted the feat/request-accepts-helper branch October 13, 2025 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants